package com.gitee.huanminabc.utils_test.controller;

import com.gitee.huanminabc.nullchain.common.NullResult;
import com.gitee.huanminabc.utils_test.service.UserDatasourceService;
import com.gitee.huanminabc.utils_test.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: java-huanmin-utils
 * @description: 测试
 * @author: huanmin
 * @create: 2024-12-09 15:21
 **/
@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private UserDatasourceService userDatasourceService;
    @Autowired
    private UserService userService;

    @GetMapping("/get")
    public NullResult<String> get() {
        return NullResult.success("get");
    }


    @GetMapping("/get1")
    public NullResult<String> get1() {
        userService.updateByTran1(2038472707,"胡安民_test");
        return NullResult.success("get");
    }


}
